# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=buho
pkgver=1.1.1
pkgrel=0
pkgdesc="Note taking app based on MauiKit"
# armhf blocked by qt5-qtdeclarative
# s390x, ppc64le, mips and mips64 blocked by qt5-qtwebview
arch="all !armhf !s390x !ppc64le !mips !mips64"
url="https://invent.kde.org/kde/buho"
license="GPL-2.0-or-later"
depends="mauikit"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg-dev qt5-qtquickcontrols2-dev qt5-qtwebview-dev mauikit-dev kconfig-dev kio-dev knotifications-dev ki18n-dev attica-dev syntax-highlighting-dev"
source="https://invent.kde.org/kde/buho/-/archive/v$pkgver/buho-v$pkgver.tar.gz"
options="!check" # No tests available
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="b6587d7c0fadff3c4a9484797b631e7f2e9064b1e907186dc98439c68be1a27dbbb06189f3c02ada716e1bfe83510fa9bf01b5300d80aec00b2c89c1ae3d2ee8  buho-v1.1.1.tar.gz"
